package com.example.teacherservice.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ChapterUpdateRequest {
    @NotBlank(message = "章节标题不能为空")
    private String title;

    private String url;

    @NotNull(message = "章节序号不能为空")
    private Integer index;

    private Long duration; // 新增时长字段
}
